const trimObject = (object: any, ...ignoreKeys: string[]) => {
  Object.keys(object).forEach((key: string) => {
    if (!ignoreKeys.includes(key) && typeof object[key] === 'string') {
      object[key] = object[key].trim();
    }
  });
  return object;
};

export { trimObject };
